
#define SETBIT(reg,bit)      (reg |=  (1<<bit)) 
#define CLEARBIT(reg,bit)    (reg &=~ (1<<bit)) 


#define BOFF CLEARBIT(PORTB,4)
#define BON SETBIT(PORTB,4)

#define YOFF CLEARBIT(PORTB,5)
#define YON SETBIT(PORTB,5)

int toInt(unsigned char hit, unsigned char lot);
unsigned char hi(int i);
unsigned char lo(int i);
int limiti(int value, int max, int min);
double limitd(int value, int max, int min);


